import request from '@/utils/request'

// 查询公告-医生中间列表
export function listDocmessage(query) {
  return request({
    url: '/sysmanagement/docmessage/list',
    method: 'get',
    params: query
  })
}

// 查询公告-医生中间详细
export function getDocmessage(doctorid) {
  return request({
    url: '/sysmanagement/docmessage/' + doctorid,
    method: 'get'
  })
}

// 新增公告-医生中间
export function addDocmessage(data) {
  return request({
    url: '/sysmanagement/docmessage',
    method: 'post',
    data: data
  })
}

// 修改公告-医生中间
export function updateDocmessage(data) {
  return request({
    url: '/sysmanagement/docmessage',
    method: 'put',
    data: data
  })
}

// 删除公告-医生中间
export function delDocmessage(doctorid) {
  return request({
    url: '/sysmanagement/docmessage/' + doctorid,
    method: 'delete'
  })
}
